﻿#include "TurnTableDecode_TurnTable_SearchZeroState.h"

#include "TurnTableCodec.h"

TurnTableDecode_TurnTable_SearchZeroState::TurnTableDecode_TurnTable_SearchZeroState(TurnTableCodec *turnTableCodec)
{
  this->turnTableCodec=turnTableCodec;
}

TurnTableDecode_TurnTable_SearchZeroState::~TurnTableDecode_TurnTable_SearchZeroState()
{

}

void TurnTableDecode_TurnTable_SearchZeroState::decode(char* const data,uint deviceId)
{
  int state=dataBodyToInt(data,1);
  logSaver->saveLog(QStringLiteral("TurnTableCodec,search zero state:%1").arg(state),LogSaver::Debug);
  emit turnTableCodec->signal_turnTableSearchZeroState((TurnTableCodec::TurnTableSearchZeroState)state,deviceId);
}
